package com.android.bottomtab;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.MotionEvent;
public class Activity1 extends Activity {  
     private static final String TAG = "Activity1";  
     @Override 
     public void onCreate(Bundle savedInstanceState) {  
         super.onCreate(savedInstanceState);  
//         setContentView(R.layout.main);  
         Log.e(TAG, "Activity1 onCreate! HashCode=" + this.hashCode() + " TaskId=" + getTaskId());   
     }  
       
     @Override 
     protected void onNewIntent(Intent intent) {  
         Log.e(TAG, "Activity1 onNewIntent! HashCode="+ this.hashCode() + " TaskId=" + getTaskId());  
         super.onNewIntent(intent);  
     }  
       
     @Override 
     protected void onDestroy() {  
         Log.e("Activity1", "Activity1 onDestroy! HashCode="+this.hashCode()+ "TaskId="+getTaskId());  
         super.onDestroy();  
     }  
          
     /**点击进入Activity2*/ 
     @Override 
     public boolean onTouchEvent(MotionEvent event) {  
//         Intent intent = new Intent(this, Activity2.class);  
//         startActivity(intent);  
         return super.onTouchEvent(event);  
     }  
 } 